// interfaceList/api.ts
import type { AxiosRequestConfig } from 'axios'
import type { ApiResult } from '@/types/app'
import type { RequestOptions } from '@/utils/http'
import type { GetInterfaceListParams, GetInterfaceList, ExportInterfaceLisParams } from './type'
import { http } from '@/utils/http'
export const interfaceListApi = {
  /** 获取接口列表 */
  getInterfaceList(config?: AxiosRequestConfig<GetInterfaceList>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/assetdetail/selectPage', ...config }, options)
  },
  /** 导出 */
  exportInterfaceList(config?: AxiosRequestConfig<ExportInterfaceLisParams>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/assetdetail/export', responseType: 'blob', ...config }, options)
  }
}
